//
//  OrderFooterTotalString.m
//  StandardizedProduct
//
//  Created by 宁宁 on 16/7/5.
//  Copyright © 2016年 ym. All rights reserved.
//

#import "OrderFooterTotalString.h"

@implementation OrderFooterTotalString

+ (NSAttributedString *)AttributedStringWithNum:(NSString *)num andTotal:(NSString *)total andFreight:(NSString *)freight{
    
    
    NSString *footerString = [NSString stringWithFormat:@"共%@件商品  合计:¥%@(含运费 ¥%@)", num, total, freight];
    
    NSMutableAttributedString *AttributedStr = [[NSMutableAttributedString alloc] initWithString:footerString];
    
    [AttributedStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14.0] range:NSMakeRange(0, footerString.length)];
    //价格
    //修改字体大小
    [AttributedStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:20.0] range:NSMakeRange(10 + num.length, total.length - 3)];
    
    return AttributedStr;
}

@end
